<!--
 * @FilePath     : /layui/demo/13215.html
 * @Description  : text 自定义 table 文本
 * @Date         : 2025-02-14 11:33
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-02-14 11:33
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <table id="demo" lay-filter="test"></table>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/table/common.js"></script>
    <script>
      var table = layui.table

      table.render({
        elem: '#demo',
        cols: cols,
        data: [],

        /**
         * @key text
         * @brief: 自定义文本
         * #如空数据时的异常提示等
         * @value {string} 任意字符串
         */
        text: {
          none: '渲染内容为空', // 默认："无数据"
        },
      })
    </script>
  </body>
</html>